from django.urls import path
from .views import (
    ListFontCategoriesView,
    CreateFontCategoryView,
    UpdateFontCategoryView,
    DeleteFontCategoryView, ListFontsView, CreateFontView, DeleteFontView, UpdateFontView, ToggleFontFavoriteView
)

urlpatterns = [
    path('categories/', ListFontCategoriesView.as_view(), name='list-font-categories'),
    path('categories/create/', CreateFontCategoryView.as_view(), name='create-font-category'),
    path('categories/update/<str:category_id>/', UpdateFontCategoryView.as_view(), name='update-font-category'),
    path('categories/delete/', DeleteFontCategoryView.as_view(), name='delete-font-category'),
]

urlpatterns += [
    path('fonts/', ListFontsView.as_view(), name='list-fonts'),
    path('fonts/create/', CreateFontView.as_view(), name='create-font'),
    # path('fonts/update/<str:font_id>/', UpdateFontView.as_view(), name='update-font'),
    path('fonts/changeFavorite/<str:font_id>/', ToggleFontFavoriteView.as_view(), name='change-font-favorite'),
    path('fonts/delete/', DeleteFontView.as_view(), name='delete-font'),
]